package edu.purdue.cs505;

/*
 * A simple receiver that prints the contents of messages it receives.
 */
public class PrintingReceiver implements ReliableChannelReceiver, BroadcastReceiver
{
   public PrintingReceiver()
   {

   }

   /**
    * Just print the message
    */
   public void rreceive(Message m)
   {
      System.out.println(m.getContents());
   }

  @Override
  public void rdeliver(Message m)
  {
    System.out.println(m.getContents());
  }
}
